package com.ruoyi.project.system.style.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.system.style.mapper.BizHouseStyleMapper;
import com.ruoyi.project.system.style.domain.BizHouseStyle;
import com.ruoyi.project.system.style.service.IBizHouseStyleService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 家装风格Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-05-01
 */
@Service
public class BizHouseStyleServiceImpl implements IBizHouseStyleService 
{
    @Autowired
    private BizHouseStyleMapper bizHouseStyleMapper;

    /**
     * 查询家装风格
     * 
     * @param id 家装风格ID
     * @return 家装风格
     */
    @Override
    public BizHouseStyle selectBizHouseStyleById(Integer id)
    {
        return bizHouseStyleMapper.selectBizHouseStyleById(id);
    }

    /**
     * 查询家装风格列表
     * 
     * @param bizHouseStyle 家装风格
     * @return 家装风格
     */
    @Override
    public List<BizHouseStyle> selectBizHouseStyleList(BizHouseStyle bizHouseStyle)
    {
        return bizHouseStyleMapper.selectBizHouseStyleList(bizHouseStyle);
    }

    /**
     * 新增家装风格
     * 
     * @param bizHouseStyle 家装风格
     * @return 结果
     */
    @Override
    public int insertBizHouseStyle(BizHouseStyle bizHouseStyle)
    {
        return bizHouseStyleMapper.insertBizHouseStyle(bizHouseStyle);
    }

    /**
     * 修改家装风格
     * 
     * @param bizHouseStyle 家装风格
     * @return 结果
     */
    @Override
    public int updateBizHouseStyle(BizHouseStyle bizHouseStyle)
    {
        return bizHouseStyleMapper.updateBizHouseStyle(bizHouseStyle);
    }

    /**
     * 删除家装风格对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteBizHouseStyleByIds(String ids)
    {
        return bizHouseStyleMapper.deleteBizHouseStyleByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除家装风格信息
     * 
     * @param id 家装风格ID
     * @return 结果
     */
    @Override
    public int deleteBizHouseStyleById(Integer id)
    {
        return bizHouseStyleMapper.deleteBizHouseStyleById(id);
    }
}
